import React, { lazy } from 'react'
import { Routes, Route } from 'react-router-dom'
// import { browserHistory } from 'react-router'

const Home = lazy(() => import('../views/Home'))
const About = lazy(() => import('../views/About'))

export default function Routers() {
  return (
    <Routes>
      <Route path='/' element={<Home />} />
      <Route path='/Home/:id' element={<Home />} />
      <Route path='/About' element={<About />} />
    </Routes>  
  )
}